<!DOCTYPE html>
<html>
<head>
    <title>登录</title>
	<meta charset="UTF-8">
   <link rel="stylesheet" type="text/css" href="../Css/bootstrap.css" />
   <link rel="stylesheet" type="text/css" href="sys/Css/index.css" />
    <link rel="stylesheet" type="text/css" href="../Css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="../Css/style.css" />
    <script type="text/javascript" src="js/jquery.js"></script>
    <script type="text/javascript" src="../Js/jquery.sorted.js"></script>
    <script type="text/javascript" src="../Js/bootstrap.js"></script>
    <script type="text/javascript" src="../Js/ckform.js"></script>
    <script type="text/javascript" src="../Js/common.js"></script>
    <script type="text/javascript" src="js/jquery.cookie.js"></script>
    <script type="text/javascript">
    	$(function() {
    		var username = $.cookie("username");
    		if (username == undefined) {
    			
    		} else {
    			$("#username").val(username);
    		}
    		$("#randomcode").click(function() {
    			$(this).attr("src","randomcode.do?"+Math.random());
    		});
    		$("#verify").keyup(function() { //用户在输入验证码就进行ajax异步请求
    			var ucode = $(this).val();
    			$("#res").empty();
    			$.get("randomcodeajax.do",{"v":"isRandomCodeAjax","ucode":ucode},function(data){
    				$("#res").append($(data)); //将服务器端返回的html追加span标签内
    			},"html");
    		});
    	});
    </script>
</head>
<body>
<div class="container">

    <form class="form-signin" method="post" action="LoginServlet">
        <h2 class="form-signin-heading">管理员登录系统</h2>
        
       	<b>账号</b>：<input type="text" name="username" class="input-block-level" placeholder="账号" id="username"><br/>
       	<b>密码</b>：<input type="password" name="password" class="input-block-level" placeholder="密码"><br/>

        <button class="btn btn-large btn-primary" type="submit">登录</button>
    </form>

</div>
</body>
</html>